package scenic.toolkit;

import scenic.toolkit.db.CharArray;
import scenic.toolkit.db.Property;

public class LabelModel extends ComponentModel {
	private static Property<Font> fontProperty = new Property<Font>("font");
	private static Property<CharArray> textProperty = new Property<CharArray>("text");
	
	public LabelModel() {
	}
	
	public LabelModel(Font font, String text) {
		setFont(font);
		setText(new CharArray(text));
	}
	
	public LabelView createComponent() {
		return new LabelView(this);
	}
	
	public void setFont(Font font) {
		fontProperty.set(this, font);
	}
	
	public Font getFont() {
		return fontProperty.get(this);
	}

	public void setText(CharArray text) {
		textProperty.set(this, text);
	}
	
	public CharArray getText() {
		return textProperty.get(this);
	}
}
